<?php
ini_set("memory_limit","1024M");
set_time_limit(0);
include_once("qybase.class.php");
class Index_con extends Qybase{


	public function index(){
		if(empty($_SESSION["userinfo"])){die("<script>top.location.href='index.php'</script>");}
		$urlhost = empty($_SERVER["SERVER_NAME"])?$_SERVER["HTTP_HOST"]:$_SERVER["SERVER_NAME"];
		if($urlhost != 'zq.zhongsou.com' && $urlhost != 'kaifa.zq.zhongsou.com'){
			die("请在测试环境访问");
		}
		if($this->userinfo["userid"]!=1){die("无权访问此页面");}
		$this->smarty->display("index.tpl");
	}

	public function delrcode(){
		$this->onconn->updata("pcindex","rcode=''");
		echo "清除成功";
		exit;
	}
	

}